<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recovery_category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-recovery_category_id" data-rule="required" data-source="recovery/category/seleted" class="form-control selectpage" name="row[recovery_category_id]" type="text" value="{$row.recovery_category_id|htmlentities}">-->
            <select id="c-recovery_category_id" data-rule="required" class="form-control selectpicker" name="row[recovery_category_id]">
                <option value="" selected>请选择分类</option>
                {foreach name="category" item="vo"}
                <option value="{$vo.id}" {in name="$vo.id" value="$row.recovery_category_id"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-describe" data-rule="required" class="form-control " rows="5" name="row[describe]" cols="50">{$row.describe|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Devoteparam')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div>&nbsp;</div>
            <div>
                <input class="form-control" style="width: 120px;" name="row[devoteparam][0][custom_one]" type="text" placeholder="自定义字段" value="{$row['devoteparam'][0]['custom_one']}">
                <input class="form-control" style="width: 100px;" name="row[devoteparam][0][proportion]" data-rule="range(0~)" type="number" step="0.01" placeholder="自定义比例" value="{$row['devoteparam'][0]['proportion']}">
                <input class="form-control" style="width: 120px;" name="row[devoteparam][0][custom_two]" type="text" placeholder="自定义字段" value="{$row['devoteparam'][0]['custom_two']}">
            </div>
            <div style="padding-top: 10px;">
                <input class="form-control" style="width: 120px;" name="row[devoteparam][1][custom_one]" type="text" placeholder="自定义字段" value="{$row['devoteparam'][1]['custom_one']}">
                <input class="form-control" style="width: 100px;" name="row[devoteparam][1][proportion]" data-rule="range(0~)" type="number" step="0.01" placeholder="自定义比例" value="{$row['devoteparam'][1]['proportion']}">
                <input class="form-control" style="width: 120px;" name="row[devoteparam][1][custom_two]" type="text" placeholder="自定义字段" value="{$row['devoteparam'][1]['custom_two']}">
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
